import request from '@/utils/request'
const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

export function login(data) {
  return request({
    url:baseUrl+ '/lcmanager/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url:baseUrl+ '/car/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url:baseUrl+ '/lcmanager/logout',
    method: 'get'
  })
}


export function updateManagerApi(form){
  return request({
    url:baseUrl+"/lcmanager",
    method:"put",
    data:form
  })
}

export function getManagerApi(){
  return request({
    url:baseUrl+"/lcmanager",
    method:"get"
  })
}


